package main
import "fmt"

type stu struct{
	name string
	age int
}

func (a stu) ceshi(){
	fmt.Printf("name = %s\tage = %d\n", a.name, a.age)
}

func (b *stu) ceshi2(){
	fmt.Printf("* name = %s\tage = %d\n", b.name, b.age)
}

func main(){
	var b stu
	b.name = "RuiGe"
	b.age = 22
	p := (stu).ceshi
	p(b)
	
	q := (*stu).ceshi2
	q(&b)
}
